﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;

namespace Sovigaz.DataProvider
{
    public partial class SovigazDbContext
    {
        public DbSet<UserRole> UserRoles { get; set; }
    }

    [Table("UserRoles")]
    public class UserRole
    {
        [Key, Column(Order = 0)]
        public int UserID { get; set; }

        [Key, Column(Order = 1)]
        public int RoleID { get; set; }
    }

    public class UserRoleComplex
    {
        [Key, Column(Order = 0)]
        public int UserID { get; set; }

        public string Username { get; set; }

        public string FullName { get; set; }

        [Key, Column(Order = 1)]
        public int RoleID { get; set; }
    }
}